home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d8 / t3script.arc / TBBS.SLT < prev    next >
Encoding:
Text File  |  1990-04-14  |  2.8 KB  |  75 lines

  1. /////////////////////////////////////////////////////////////////////////
  2. //             TBBS.SLT  -  by Terry Robertson (October 1988)          //
  3. // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //
  4. //                                                                     //
  5. //    SCRIPT TO LOG-ON TO A TBBS SYSTEM.                               //
  6. //                                                                     //
  7. //    Please note that this script expects you to have assigned your   //
  8. //    FIRST NAME to function key F1 and your LAST NAME to function key //
  9. //    F2. The easiest way to do this is by using the FKEY script in    //
  10. //    this collection.                                                 //
  11. //                                                                     //
  12. //    In addition, the script is written so that it will abort if you  //
  13. //    have not completed the relevant PASSWORD entry in the Dialling   //
  14. //    Directory.                                                       //
  15. //                                                                     //
  16. //    I have assumed that you want to use the linked scripts CONNECT   //
  17. //    and CAPTURE. If you do not have these or prefer not to use       //
  18. //    them you should "comment out" the two lines starting "call"      //
  19. //    by simply putting "//" before the word "call".                   //
  20. //                                                                     //
  21. /////////////////////////////////////////////////////////////////////////
  22.  
  23. str f[15];
  24. str s[20];
  25.  
  26. main()
  27.  
  28. {
  29.  alarm(1);
  30.  
  31.  call("connect", 1);                    // Gives "connect" information by
  32.                                         // calling Connect.slc script
  33.  call("capture", 1);                    // Opens new capture file by calling
  34.                                         // Capture.slc script
  35.  
  36.  if (not _entry_pass)                   // no pass, so didn't recog. board
  37.   {
  38.    prints ("Sorry, I don't know the password for this BBS!");
  39.    return;
  40.   }
  41.  
  42.  if (not waitfor("First Name?"))        // if no prompt for first name
  43.   {
  44.    prints("Log-on failed!");
  45.    return;                              // ...abort
  46.   }
  47.  
  48.  keyget(0x3b00, 0, f);
  49.  delchrs(f, strlen(f) - 2, strlen(f));
  50.  cputs(f);
  51.  cputs("^M");
  52.  
  53.  if (not waitfor("Last Name?"))         // if no prompt for surname
  54.   {
  55.    prints("Log-on failed!");
  56.    return;                              // ...abort
  57.   }
  58.    keyget(0x3c00, 0, s);
  59.    delchrs(s, strlen(s) - 2, strlen(s));
  60.    cputs(s);
  61.    cputs("^M");
  62. Waitfor(" correct?");
  63.    cputs("y");
  64.  
  65.  if (not waitfor("Password:"))          // if no prompt for password
  66.   {
  67.    prints("Log-on failed!");
  68.    return;                              // ...abort
  69.   }
  70.    cputs(_entry_pass);                    // send password
  71.    cputs("^M");
  72.  
  73.  
  74.  }
  75.